package com.yygo.service;

import com.yygo.model.BondCompany;
import com.yygo.model.Dealer;
import com.yygo.model.vo.BondCompanyVO;

import java.util.List;
import java.util.Set;

/**
 * Created by tiansha on 2015/8/8.
 */
public interface BondManager extends GenericManager<BondCompany, Long> {

    BondCompany loadBond(Long id);
  BondCompanyVO loadChildTree(Long id);
  List<BondCompanyVO> loadAllChildTree();
    Set<Dealer> getDealers(Long bondId);
    BondCompany load(Long bondId);
    void saveBond(BondCompany bond) throws UserExistsException;
}
